-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Integrate Bitget for Rate Fetching & Median Calculation Across Multiple Providers #425
base: main
Are you sure you want to change the base?
Conversation
Build().POST("/api/v2/p2p/adv/search"). | ||
Retry().Set(3, 5*time.Second). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which documentation are you using for Bitget?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I had already mentioned this earlier, but the Bitget endpoint you provided in the user story https://www.bitget.com/api-doc/common/p2p/Get-P2P-Order-List isn’t working
I’m getting the following error message:
This site can’t be reached
www.bitget.com’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
res, err := fastshot.NewClient(BitgetAPIURL). | ||
Config().SetTimeout(30*time.Second). | ||
Header().Add("Content-Type", "application/json"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't some extra auth headers required?
Description
This PR integrates Bitget as a source for fetching rates for all supported currencies (e.g., NGN, KES, GHS). It enhances the rate calculation system by retrieving data from multiple providers (Quidax, Binance, and Bitget) and computing the median rate for improved accuracy and reliability.
References
Closes #423
Bitget API Documentation
Testing
Checklist
main
By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.